package com.avocado.persistence.service.impl;

import java.io.Serializable;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.avocado.persistence.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;


import com.avocado.persistence.repository.BaseRepository;

public abstract class BaseServiceImpl<T,ID extends Serializable,R extends BaseRepository<T,ID>> implements BaseService<T, ID, R> {

	@PersistenceContext
    protected EntityManager em;
	
	
    @Autowired
    protected R baseRepository;
    
   
    @Override
    public R getRepository() {
        return baseRepository;
    }
    
    
   
	
}
